<template>
	<view><menuBox :menuInfo="menuInfo"></menuBox></view>
</template>

<script>
import menuBox from '@/wxcomponents/commonLayout/menu';
import userMixins from '@/libs/userMixins.js';
export default {
	mixins: [userMixins],
	data() {
		return {
			menuInfo: {
				base: {
					menuProp: ['name']
				},
				list: []
			}
		};
	},
	onShow() {
		this.menuInfo.list = [
			{
				name: '请假申请',
				url: this.calMenuShow('学生身份') ? 'applyLeave' : 'teacherLeave',
			},
			{
				url: 'leaveManage',
				name: '请假管理'
			}
		];
	},
	components: {
		menuBox
	}
};
</script>

<style lang="scss" scoped></style>
